package com.lxk.finance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.lxk.finance.domain.AccUserAccountRecord;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;



/**
 * 账户流水视图对象 acc_user_account_record
 *
 * @author LXK-RY5
 * @date 2024-07-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AccUserAccountRecord.class)
public class AccUserAccountRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 账户类型
     */
    @ExcelProperty(value = "账户类型")
    private Integer accountType;

    /**
     * 流水金额
     */
    @ExcelProperty(value = "流水金额")
    private BigDecimal amount;

    /**
     * 账号ID
     */
    @ExcelProperty(value = "账号ID")
    private Long accountId;

    /**
     * 流水号
     */
    @ExcelProperty(value = "流水号")
    private String accountSn;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderSn;

    /**
     * 额外信息
     */
    @ExcelProperty(value = "额外信息")
    private String extraInfo;

    /**
     * 剩余金额
     */
    @ExcelProperty(value = "剩余金额")
    private BigDecimal leftAmount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 收支状态,1=收入 0=支出 income_status
     */
    @ExcelProperty(value = "收支状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "income_status")
    private Integer incomeStatus;

    /**
     * 用户类型
     */
    @ExcelProperty(value = "用户类型")
    private String userType;

    /**
     * 是否提现(0不是 1是)withdraw_status
     */
    @ExcelProperty(value = "是否提现", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "withdraw_status")
    private Integer withdrawStatus;


}
